<#macro showPageInfo page functionName="changePage">
<script language="javascript">
	//innerChangePage = ${functionName};
</script>
		<#assign numPages = page.totalPage>
		<#assign thisPage = page.currentPage>
		<#if (numPages > 1 ) >
			<#if (thisPage >1) >
				<span class="start"><a href="javascript:void(0)" onclick='javascript:${functionName}(1);return false;'><@ww.text name="page.firstpage"/></a></span>
				<#assign previous = page.currentPage>
				<#if page.getHasPrePage()>
					<#assign previous = page.currentPage -1 >
				</#if>
				<span class="previous"><a href="javascript:void(0)" onclick='javascript:${functionName}(${previous});return false;'><@ww.text name="page.prepage"/></a></span>
			<#else>
				<span class="start"><@ww.text name="page.firstpage"/></span>
				<span class="previous"><@ww.text name="page.prepage"/></span>
			</#if>
			
			<#if (thisPage == numPages) >
				<span class="next"><@ww.text name="page.nextpage"/></span>
				<span class="end"><@ww.text name="page.lastpage"/></span>
			<#else>
				<#assign next = page.currentPage>
				<#if page.getHasNextPage()>
					<#assign next = page.currentPage + 1 >
				</#if>
				<span class="next"><a href="javascript:void(0)" onclick='javascript:${functionName}(${next});return false;'><@ww.text name="page.nextpage"/></a></span>
				<span class="end"><a href="javascript:void(0)" onclick='javascript:${functionName}(${numPages});return false;'><@ww.text name="page.lastpage"/></a></span>
			</#if>
			(<@ww.text name="page.thispage"><@ww.param>${thisPage}</@ww.param></@ww.text>/<@ww.text name="page.totalpages"><@ww.param>${numPages}</@ww.param></@ww.text>,总共记录数:${page.totalRecords}条 ,每页显示记录数:${page.everyPage}条/页)
			<#assign totalRecord = page.totalRecords>
	   		<@ww.text name="page.jump"/>
	   		<input name="currentPage" class="input_mini" type="text" size="2" onkeypress="if(event.keyCode==13){javascript:var cpage=1;var currentPage=this;if(currentPage.value<=${numPages}&&currentPage.value.indexOf('.')==-1&& currentPage.value>0){cpage=currentPage.value}else{alert('<@ww.text name="page.js.outtotalpages"/>');return false;}${functionName}(cpage);return false;}" title="<@ww.text name="page.jump.title"/>"/>
	   		<@ww.text name="page.page"/>
	   </#if>
</#macro>

<#macro showPageInfo2 page functionName="changePage">
        <#assign numPages = page.totalPage>
        <#assign thisPage = page.currentPage>
        <#if (numPages > 1 ) >
            <#if (thisPage >1) >
                <a class="page1" href="javascript:void(0)" onclick='javascript:${functionName}(1);return false;'>&nbsp;&nbsp;</a>
                <#assign previous = page.currentPage>
                <#if page.getHasPrePage()>
                    <#assign previous = page.currentPage -1 >
                </#if>
                <a class="page2" href="javascript:void(0)" onclick='javascript:${functionName}(${previous});return false;'>&nbsp;&nbsp;</a>
            <#else>
                <a href="#" class="page1">&nbsp;&nbsp;</a>
                <a href="#" class="page2">&nbsp;&nbsp;</a></#if><a href="#" class="pagetext"><@ww.text name="page.thispage"><@ww.param>${thisPage}</@ww.param></@ww.text>/<@ww.text name="page.totalpages"><@ww.param>${numPages}</@ww.param></@ww.text></a>
                <#if (thisPage == numPages) >
                <a href="#" class="page3">&nbsp;&nbsp;</a>
                <a href="#" class="page4">&nbsp;&nbsp;</a>
            <#else>
                <#assign next = page.currentPage>
                <#if page.getHasNextPage()>
                    <#assign next = page.currentPage + 1 >
                </#if>
                <a class="page3" href="javascript:void(0)" onclick='javascript:${functionName}(${next});return false;'> &nbsp;&nbsp;</a>
                <a class="page4" href="javascript:void(0)" onclick='javascript:${functionName}(${numPages});return false;'> &nbsp;&nbsp;</a>
            </#if>
       </#if>
</#macro>

<#macro fillLine pageSize dataCount columnCount>
<#assign leftLine=(pageSize-dataCount)>
	<#if (leftLine>0)>
		<#list 1..leftLine as i>
			<tr onmouseover="listTable_trMouseOver(this)" onmouseout="listTable_trMouseOut(this)">
				<#list 1..columnCount as j>
					<td>&nbsp;</td>
				</#list>
			</tr>
		</#list>
	</#if>	
</#macro>

<#macro fillLine2 pageSize dataCount columnCount>
<#assign leftLine=(pageSize-dataCount)>
    <#if (leftLine>0)>
        <#list 1..leftLine as i>
                    <li>&nbsp;</li>
         </#list>
    </#if>  
</#macro>

<#macro showCount result>
    <#if result?exists>
        <div class="resultsum"><@ww.text name="page.totalcount"/><font color="#FF0000">${result.page.totalRecords}</font><@ww.text name="page.totalcount.unit"/></div>
    </#if>
</#macro>